package com.app.biz.service.impl;

import java.util.List;

import com.app.common.utils.DateUtils;
import com.app.common.utils.uuid.IdUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.app.biz.mapper.BizAppOpinionFeedbackMapper;
import com.app.biz.domain.BizAppOpinionFeedback;
import com.app.biz.service.IBizAppOpinionFeedbackService;

/**
 * 意见反馈Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
@Service
public class BizAppOpinionFeedbackServiceImpl implements IBizAppOpinionFeedbackService 
{
    @Autowired
    private BizAppOpinionFeedbackMapper bizAppOpinionFeedbackMapper;

    /**
     * 查询意见反馈
     * 
     * @param baseId 意见反馈主键
     * @return 意见反馈
     */
    @Override
    public BizAppOpinionFeedback selectBizAppOpinionFeedbackByBaseId(String baseId)
    {
        return bizAppOpinionFeedbackMapper.selectBizAppOpinionFeedbackByBaseId(baseId);
    }

    /**
     * 查询意见反馈列表
     * 
     * @param bizAppOpinionFeedback 意见反馈
     * @return 意见反馈
     */
    @Override
    public List<BizAppOpinionFeedback> selectBizAppOpinionFeedbackList(BizAppOpinionFeedback bizAppOpinionFeedback)
    {
        return bizAppOpinionFeedbackMapper.selectBizAppOpinionFeedbackList(bizAppOpinionFeedback);
    }

    /**
     * 新增意见反馈
     * 
     * @param bizAppOpinionFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int insertBizAppOpinionFeedback(BizAppOpinionFeedback bizAppOpinionFeedback)
    {
        bizAppOpinionFeedback.setBaseId(IdUtils.fastUUID());
        bizAppOpinionFeedback.setCreateTime(DateUtils.getNowDate());
        return bizAppOpinionFeedbackMapper.insertBizAppOpinionFeedback(bizAppOpinionFeedback);
    }

    /**
     * 修改意见反馈
     * 
     * @param bizAppOpinionFeedback 意见反馈
     * @return 结果
     */
    @Override
    public int updateBizAppOpinionFeedback(BizAppOpinionFeedback bizAppOpinionFeedback)
    {
        bizAppOpinionFeedback.setUpdateTime(DateUtils.getNowDate());
        return bizAppOpinionFeedbackMapper.updateBizAppOpinionFeedback(bizAppOpinionFeedback);
    }

    /**
     * 批量删除意见反馈
     * 
     * @param baseIds 需要删除的意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteBizAppOpinionFeedbackByBaseIds(String[] baseIds)
    {
        return bizAppOpinionFeedbackMapper.deleteBizAppOpinionFeedbackByBaseIds(baseIds);
    }

    /**
     * 删除意见反馈信息
     * 
     * @param baseId 意见反馈主键
     * @return 结果
     */
    @Override
    public int deleteBizAppOpinionFeedbackByBaseId(String baseId)
    {
        return bizAppOpinionFeedbackMapper.deleteBizAppOpinionFeedbackByBaseId(baseId);
    }
}
